package com.cyq.day17.Demo3;

import java.time.LocalDate;

/**
 * 主题类
 */
public class Topic extends Tip{
    private int topicId;//主题ID
    private int boardId;//板块ID

    public int getTopicId() {
        return topicId;
    }

    public void setTopicId(int topicId) {
        this.topicId = topicId;
    }

    public int getBoardId() {
        return boardId;
    }

    public void setBoardId(int boardId) {
        this.boardId = boardId;
    }

    public Topic(int topicId, int boardId) {
        this.topicId = topicId;
        this.boardId = boardId;
    }

    public Topic(String tittle, String content, String publishTime, int uid, int topicId, int boardId) {
        super(tittle, content, publishTime, uid);
        this.topicId = topicId;
        this.boardId = boardId;
    }

    public Topic() {
    }

    @Override
    public void getInfo() {
        super.getInfo();
        System.out.println("主题内容:"+"如题");
        System.out.println("发表时间:"+ LocalDate.now().toString());
    }
}
